package com.ruoyi.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 库存管理对象 t_inventory
 * 
 * @author hp
 * @date 2023-02-04
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 条码 */
    @Excel(name = "条码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 类别 */
    @Excel(name = "类别")
    private String category;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 初始库存 */
    @Excel(name = "初始库存")
    private String fistInventory;

    /** 库存 */
    @Excel(name = "库存")
    private String inventory;

    /** 库存金额 */
    @Excel(name = "库存金额")
    private BigDecimal stockAmount;

    /** 库存流水 */
    @Excel(name = "库存流水")
    private String runningWater;

    private Long warehouseId;

    private Long goodsId;

    private Integer state;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getStockAmount() {
        return stockAmount;
    }

    public void setStockAmount(BigDecimal stockAmount) {
        this.stockAmount = stockAmount;
    }

    public void setFistInventory(String fistInventory)
    {
        this.fistInventory = fistInventory;
    }

    public String getFistInventory() 
    {
        return fistInventory;
    }
    public void setInventory(String inventory)
    {
        this.inventory = inventory;
    }

    public String getInventory() 
    {
        return inventory;
    }

    public void setRunningWater(String runningWater)
    {
        this.runningWater = runningWater;
    }

    public String getRunningWater() 
    {
        return runningWater;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("specification", getSpecification())
            .append("model", getModel())
            .append("color", getColor())
            .append("category", getCategory())
            .append("unit", getUnit())
            .append("price", getPrice())
            .append("fistInventory", getFistInventory())
            .append("inventory", getInventory())
            .append("stockAmount", getStockAmount())
            .append("runningWater", getRunningWater())
            .toString();
    }
}
